//
//  BarView.h
//  MUBATE
//
//  Created by sunbin on 2017/2/28.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import <UIKit/UIKit.h>
// 方案2 代理实现
@protocol barDelegate <NSObject>

- (NSArray *)barWithTargetAry;
- (CGFloat )barWithRate;


- (UIColor *)completeBarColor;
- (UIColor *)unCompleteBarColor;


- (barMake)barty;

@end

@interface BarView : UIView

@property (nonatomic ,weak) id<barDelegate>delegate;


// 方案1 实例化
-(instancetype)initWithFrame:(CGRect)frame target:(NSArray *)targetAry rate:(CGFloat)rate barMake:(barMake)barty completeBarColor:(UIColor *)completeBarColor unCompleteBarColor:(UIColor *)unCompleteBarColor;

- (void)reloadData;

@end
